import request from '@/utils/request'

// 查询岗位列表
export function listDaywork(query) {
  return request({
    url: '/system/dayworkapart/list',
    method: 'get',
    params: query
  })
}
// 人员量总统计
export function listDayworktotal(query) {
  return request({
    url: '/system/dayworkapart/selectDayWorkCount',
    method: 'get',
    params: query
  })
}
export function listMarket() {
  return request({
    url: '/system/market/list',
    method: 'get',
  })
}
// 总可配订单数
export function listrouterMarket() {
  return request({
    url: '/system/market/lxList',
    method: 'get',
  })
}
// 昨日可配
export function listyesAvailable() {
  return request({
    url: '/system/marketzrxx/list',
    method: 'get',
  })
}
// 爆箱数货位查询
export function listLocation(query) {
  return request({
    url: '/system/location/list',
    method: 'get',
    params: query,
  })
}
// 新增爆品箱号
export function addBoxno(data) {
  return request({
    url: '/system/location/add',
    method: 'post',
    data: data
  })
}
// 取箱操作
export function removeBoxno(data) {
  return request({
    url: '/system/location/remove',
    method: 'delete',
    data: data
  })
}
// 查询所有有货货位详情
export function listdetail() {
  return request({
    url: '/system/location/selectDetailList',
    method: 'get',
  })
}
// 取箱查询库位编码
export function setLocation(query) {
  return request({
    url: '/system/location/selectLocation',
    method: 'get',
    params: query,
  })
}
// 清空货位
export function clearallLocation() {
  return request({
    url: '/system/location/clearAllLocation',
    method: 'post',
  })
}